From ed55c696cd083bfaa5429082a9c5edd4ebde0cd8 Mon Sep 17 00:00:00 2001
From: Sebastien Castiel <sebastien@castiel.me>
Date: Tue, 5 Dec 2023 17:39:05 -0500
Subject: First version

---
 src/app/groups/[groupId]/save-recent-group.tsx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/app/groups/[groupId]/save-recent-group.tsx

(limited to 'src/app/groups/[groupId]/save-recent-group.tsx')

diff --git a/src/app/groups/[groupId]/save-recent-group.tsx b/src/app/groups/[groupId]/save-recent-group.tsx
new file mode 100644
index 0000000..e55d7c8
--- /dev/null
+++ b/src/app/groups/[groupId]/save-recent-group.tsx
@@ -0,0 +1,18 @@
+'use client'
+import {
+  RecentGroup,
+  saveRecentGroup,
+} from '@/app/groups/recent-groups-helpers'
+import { useEffect } from 'react'
+
+type Props = {
+  group: RecentGroup
+}
+
+export function SaveGroupLocally({ group }: Props) {
+  useEffect(() => {
+    saveRecentGroup(group)
+  }, [])
+
+  return null
+}
-- 
cgit v1.3

